// ==UserScript==
// @name           Tennaxia Trac: Report Links
// @namespace      www.tennaxia.net
// @include        https://*.tennaxia.net/t3_trac/wiki
// @include        https://*.tennaxia.net/t3_trac/
// ==/UserScript==

function addReport39Links() {
	var content = document.getElementById('content');
	if(content) {
		content.innerHTML = content.innerHTML.replace(/du (\d\d)\/(\d\d)\/(\d\d) au (\d\d)\/(\d\d)\/(\d\d)/g,
		'<a href="https://www.tennaxia.net/t3_trac/report/39?DATESTART=20$3-$2-$1&DATEEND=20$6-$5-$4&MINE">du $1\/$2\/$3 au $4\/$5\/$6</a>');
	}
}

new function () {
	addReport39Links();
}